package com.liyang.springcloud.dao;

import com.liyang.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderDao {

    /**
     * @description: 新建订单
     * @author: liyang
     * @date: 2024/1/10 9:37
     * @param: order
     **/
    void create(Order order);

    /**
     * @description: 修改订单状态，从零改为1
     * @author: liyang
     * @date: 2024/1/10 9:37
     * @param: userId
     * @param: status 状态
     **/
    void update(@Param("userId") Long userId, @Param("status") Integer status);
}
